package com.cyy.common.config.jackson;

import org.springframework.context.annotation.Configuration;
import org.springframework.core.convert.converter.Converter;
import org.springframework.lang.Nullable;

import java.time.LocalDateTime;

@Configuration
public class MyLocalDateTimeConverter implements Converter<String, LocalDateTime>, BaseTimeDeserializer {

    @Override
    public LocalDateTime convert(@Nullable String source) {
        // 日期格式转转换
        return this.getLocalDateTimeBySource(source);
    }

}
